version: v1
plugins:
  - name: go
    out: pkg/act-device-api
    opt:
      - paths=import
    strategy: directory

  - name: go-grpc
    out: pkg/act-device-api
    opt:
      - paths=import
    strategy: directory

  - name: grpc-gateway
    out: pkg/act-device-api
    opt:
      - logtostderr=true
      - paths=import
    strategy: directory

  - name: validate
    out: pkg/act-device-api
    opt:
      - lang=go
    strategy: directory

  - name: openapiv2
    path: protoc-gen-openapiv2
    out: swagger
    opt:
      - generate_unbound_methods=true
    strategy: directory